package cn.lzj.pojo;

import lombok.Data;

import java.util.List;

//用户表
@Data
public class User {

    public Integer userId;
    public String userName;
    public String accountNo;
    public String password;
    public String telephone;
    public String userImg;
    public String userEmail;
    public String userType;//用户类型：普通用户/商家

    //一个用户拥有一个购物车
    public Cart cart;
    private List<HistoryRecord> historyRecordList;

    public User(Integer userId, String userName, String accountNo, String password,
                String telephone, String userImg, String userEmail, String userType) {
        this.userId = userId;
        this.userName = userName;
        this.accountNo = accountNo;
        this.password = password;
        this.telephone = telephone;
        this.userImg = userImg;
        this.userEmail = userEmail;
        this.userType = userType;
    }

    public User(Integer userId){
        this.userId = userId;
    }


}
